import { HeaderApi } from '@/api/api'

const header = {
    namespaced: true,
    state: {
        navList: [],
    },
    mutations: {
    },
    actions: {
        AheaderApi({ state }) {
            HeaderApi.headerList().then(res => {
                // console.log(res.data);
                state.navList = res.data.list
            })
        }
    }
}
export default header